package com.jiajiankang.myspace;



import java.util.List;
import java.util.Map;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ListView;
import android.widget.SimpleAdapter;

import com.jiajiankang.R;
import com.jiajiankang.index.sixButton;


public class WaitDeliver extends sixButton {
		private Button btnback;
		private ListView listview;
		private List<Map<String, Object>> data = null;
		private SimpleAdapter adapter;
		
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.waitdeliver);
		listview = (ListView) findViewById(R.id.waitdeliver_lv);
		data = WaitDeliver_myDataSource.getData();
		adapter = new SimpleAdapter(WaitDeliver.this, data, R.layout.waitdeliver_list,
				new String[] { "order_number", "order_value",
						"order_time", "get_number","img1", 
						"img2", "img3"
						},
				new int[] { R.id.waitdeliver_list_order_number,
						R.id.waitdeliver_list_order_value, R.id.waitdeliver_list_order_time,
						R.id.waitdeliver_list_get_number,
					R.id.waitdeliver_list_iv1, 
						R.id.waitdeliver_list_iv2,R.id.waitdeliver_list_iv3
						});
		listview.setAdapter(adapter);
		btnback = (Button) findViewById(R.id.waitdeliver_back);
	   
		btnback.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClass(WaitDeliver.this, MySpace.class);
				startActivity(intent);
				WaitDeliver.this.finish();
			}
		});
		myClickHandler();
	}
	

}
